// 设置路由映射
import Find from './components/Find'
import Focus from './components/Focus'
import Write from './components/Write'
import User from './components/User'
import Articles from './components/find/Bookshelf'
import BookInfo from './components/book/BookInfo'
import Book from './components/book/Book'
import FunctionList from './components/user/FunctionList'
import Sets from './components/set/Sets'
import EditUserInfo from './components/user/EditUserInfo'
import EditName from './components/user/EditName'
import EditIntroduction from './components/user/EditIntroduction'
import Notify from './components/user/Notify'
import Advise from './components/user/Advise'
import Exit from './components/user/Exit'
import Right from './components/user/Right'
import Favorite from './components/user/Favorite'
import Message from './components/user/Message'
import Letter from './components/user/Letter'
import Home from './components/home/Home'

export default {
	'/': {
		component: Find,
		title: '发现'
	},
	'/focus': {
		component: Focus
	},
	'/write': {
		component: Write,
		title: '写作'
	},
	'/user': {
		component: User,
		title: '我的'
	},
	'/articles/:type': {
		name: 'articles',
		component: Articles,
		backShow: true,
		focusShow: true
		// backway: '/'
	},
	'/bookinfo/:bookid': {
		name: 'bookinfo',
		component: BookInfo,
		// backShow: true,
		title: '书籍信息'
	},
	'/book/:bookid': {
		name: 'book',
		component: Book
		// backShow: true
	},
	'/set': {
		component: Sets,
		name: 'set',
		title: '设置'
	},
	'/right': {
		component: Right,
		name: 'right',
		title: '版权'
	},
	'/message': {
		component: Message,
		name: 'message',
		title: '消息'
	},
	'/favorite': {
		component: Favorite,
		name: 'favorite',
		title: '收藏'
	},
	'/letter': {
		component: Letter,
		name: 'letter',
		title: '私信'
	},
	'/edit': {
		name: 'edit',
		component: EditUserInfo,
		title: '编辑个人资料'
	},
	'/editname': {
		name: 'editname',
		component: EditName,
		title: '昵称'
	},
	'/editintroduction': {
		name: 'editintroduction',
		component: EditIntroduction,
		title: '个性简介'
	},
	'/notify': {
		name: 'notify',
		component: Notify,
		title: '通知'
	},
	'/advise': {
		name: 'advise',
		component: Advise,
		title: '建议'
	},
	'/home/:UserID': {
		name: 'home',
		component: Home,
		title: '个人主页'
	},
	'/exit': {
		name: 'exit',
		component: Exit
	},
	'/test': {
		component: Home,
		title: '个人主页'
	},
	'/test1': {
		component: FunctionList
	}
}
